package client.handler;

import client.Client;
import unit.response.Response;
import unit.response.SearchUserRequestResponse;

import java.util.Map;

/**
 * Created on 25.08.11
 *
 * @author Innokenty Shuvalov
 */
public class SearchUserResponseHandler extends AbstractResponseHandler {

    public SearchUserResponseHandler(Client client) {
        super(client);
    }

    @Override
    public void handleRequest(Response response) {
        Map<String, Integer> searchResults = ((SearchUserRequestResponse) response).getSearchResult();
        client.clientInterface.setSearchResults(searchResults);
    }
}